package com.koala.client;

import com.koala.dto.UserAuthRespVO;
import com.koala.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author koala
 * @date 2022/10/30 22:45
 */
@FeignClient(name = "user-service", contextId = "authClient", path = "/api-auth")
public interface UserFeignClient {
    @GetMapping("/v1/user/username/{username}")
    Result<UserAuthRespVO> getUserByUsername(@PathVariable String username);
}
